package com.bank.mapper;

import com.bank.entity.LoanTransaction;
import com.bank.vo.LoanTransactionVO;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface LoanTransactionMapper {
    BigDecimal getLoansByAccountId(Long accountId);

    void insert(LoanTransaction loanTransaction);

    List<LoanTransactionVO> getLoanInfoByAccountId(Long accountId);

    LoanTransaction getLoanInfoByTransactionId(Long transactionId);


    void updateLoanType(Long transactionId, Integer loanType);

    List<Long> getExpiredNotPaidLoanAccounts();
}
